let proxyObj = {}

proxyObj['/'] = {
    //目标地址
    target : "http://localhost:8081",
    //允许跨域
    changeOrigin: true,
    pathReWrite: { //不重写请求地址
        '^/':'/'

    }
}

module.exports = {
    //解决跨域问题
    devServer:{
        host: "localhost",
        port: 8080,
        proxy: proxyObj
    },
    css: {
        loaderOptions: {
            sass: {
                prependData: `@import "~@/assets/css/base.scss";`
            }
        }
    }
};